package com.alibam.core.wechat.pay;

import javax.xml.bind.annotation.XmlTransient;

/**
 * 扫描二维码请求参数
 *
 */
@javax.xml.bind.annotation.XmlRootElement(name = "xml")
public class QrcodePayRequest {

	private String appid;

	private String openid;

	private String mch_id;

	private String is_subscribe;

	private String nonce_str;

	private String product_id;

	private String sign;

	@javax.xml.bind.annotation.XmlElement(name = "appid")
	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	@javax.xml.bind.annotation.XmlElement(name = "mch_id")
	public String getMch_id() {
		return mch_id;
	}

	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}

	@javax.xml.bind.annotation.XmlElement(name = "is_subscribe")
	public String getIs_subscribe() {
		return is_subscribe;
	}

	public void setIs_subscribe(String is_subscribe) {
		this.is_subscribe = is_subscribe;
	}
	
	@javax.xml.bind.annotation.XmlElement(name = "nonce_str")
	public String getNonce_str() {
		return nonce_str;
	}

	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}

	@javax.xml.bind.annotation.XmlElement(name = "product_id")
	public String getProduct_id() {
		return product_id;
	}

	public void setProduct_id(String product_id) {
		this.product_id = product_id;
	}
	
	@javax.xml.bind.annotation.XmlElement(name = "sign")
	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	@javax.xml.bind.annotation.XmlElement(name = "openid")
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public QrcodePayRequest() {
		
	}

	public QrcodePayRequest(String appid, String openid, String mch_id,
			String is_subscribe, String nonce_str, String product_id,
			String sign) {
		super();
		this.appid = appid;
		this.openid = openid;
		this.mch_id = mch_id;
		this.is_subscribe = is_subscribe;
		this.nonce_str = nonce_str;
		this.product_id = product_id;
		this.sign = sign;
	}
	
	@XmlTransient
	public String[] getCDataNode() {
		String[] cDataNodes = {"qrcodepay" , "test", sign};
		return cDataNodes;
	}
}
